package com.mall.product.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("product_image")
public class ProductImage {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long productId;  // 对应商品id
    private String imgUrl;  // 图片链接
    private Integer sort;  // 种类
    private Integer imgType; // 1:主图, 2:详情图
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;  // 创建时间

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}